<template>
  <div class="dimensional_home">
    <div class="left">
      <div class="logo">
        <span>ILDP三维设计</span>
      </div>
      <a-menu :default-selected-keys="defaultData.menuKey" theme="dark">
        <a-menu-item key="home">
          <template #icon><icon-computer /></template>
          大屏设计
        </a-menu-item>
        <a-menu-item key="data">
          <template #icon><icon-computer /></template>
          数据源管理
        </a-menu-item>
      </a-menu>
    </div>
    <div class="content">
      <tableList v-if="defaultData.menuKey === 'home'" />
    </div>
  </div>
</template>

<script setup lang="ts">
import {reactive} from "vue";
import tableList from '../table/Index.vue'

const defaultData = reactive({
  menuKey:"home"
})
</script>

<style scoped lang="less">
.dimensional_home {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  >.left{
    width: 180px;
    height: 100%;
    margin-right: 20px;
    >.logo{
      width: 100%;
      height: 60px;
      display: flex;
      justify-content: center;
      align-items: center;
      color: #ffffff;
      font-weight: bold;
      font-size:20px
    }
  }
  >.content{
    flex: 1;
  }
}
</style>
